<template>
  <div class="app-container">
    <Find :OriginalFilter="{ static: true }" :formList="formList1" @findClicked="findData" />

    <el-card style="margin-top: 10px" shadow="always" :body-style="{ padding: '20px' }">
      <div style="display: flex">
        <div style="width: 65%">
          <h1>产量明细查询</h1>
          <Table :tableHeader="tableHeader" :tableData="tableData" :TableHeight="130" />
        </div>
        <div style="width: 35%; margin-left: 10px">
          <h1>缴库明细</h1>
          <Table :tableHeader="tableHeader1" :tableData="tableData1" :TableHeight="130" />
        </div>
      </div>
      <PageModule :PageData="{ pageSizeShow: true }" />
    </el-card>
  </div>
</template>
<script lang="ts">
import { defineComponent } from 'vue'
import JMessage from '@/utils/JMessage'
export default defineComponent({
  name: 'NeedleCarEmployeeOutputKl'
})
</script>
<script lang="ts" setup>
import { i18n, Jzhcn } from '@/i18n'
import { ref } from 'vue'
const formList1 = ref([
  {
    type: 'input',
    inputPlaceholder: '请输入指令',
    inputValue: ''
  },
  {
    type: 'input',
    inputPlaceholder: '请输入型体',
    inputValue: ''
  },
  {
    type: 'input',
    inputPlaceholder: '请输入工号',
    inputValue: ''
  },
  {
    type: 'input',
    inputPlaceholder: '请输入姓名',
    inputValue: ''
  },
  {
    type: 'input',
    inputPlaceholder: '请输入序号',
    inputValue: ''
  },
  {
    type: 'input',
    inputPlaceholder: '请输入工序',
    inputValue: ''
  },
  {
    type: 'date',
    dateLabel: '日期',
    dateValue: ''
  },
  {
    type: 'select',
    selectValue: '',
    selectP: '部门',
    selectLabel: '',
    selectOptions: []
  },
  {
    type: 'select',
    selectValue: '',
    selectP: '类型',
    selectLabel: '',
    selectOptions: []
  },
  {
    type: 'checkbox',
    checkboxLabel: '已检核',
    checked: false
  },
  {
    type: 'checkbox',
    checkboxLabel: '未检核',
    checked: false
  },
  {
    type: 'checkbox',
    checkboxLabel: '全部',
    checked: false
  },
  {
    type: 'button',
    checkboxLabel: '导出明细'
  },
  {
    type: 'button',
    checkboxLabel: '导出指令产量'
  },
  {
    type: 'select',
    selectValue: '',
    selectP: '缴库单位',
    selectLabel: '',
    selectOptions: []
  },
  {
    type: 'date',
    dateLabel: '收料日期',
    dateValue: ''
  }
])

const findData = (a: any) => {}

// 表格数据
const tableData = [
  {
    date: '20230427',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-02',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-04',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  }
]

const tableHeader = ref([
  {
    label: '类型',
    prop: 'slipNo',
    width: '55'
  },
  {
    label: '日期',
    prop: 'slipDate',
    width: '55'
  },
  {
    label: '指令',
    prop: 'dutyDeptName',
    width: '55'
  },
  {
    label: '型体',
    prop: 'sysUser',
    width: '55'
  },
  {
    label: '订单量',
    prop: 'dutyMemo'
  },
  {
    label: '序号'
  },
  {
    label: '工序名称',
    prop: 'dutyMemo'
  },
  {
    label: '部门',
    width: '55'
  },
  {
    label: '工号'
  },
  {
    label: '姓名'
  },
  {
    label: '数量'
  },
  {
    label: '输入员'
  },
  {
    label: '输入日期'
  },
  {
    label: '检核表及'
  }
])

const tableData1 = [
  {
    date: '20230427',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-02',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-04',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  },
  {
    date: '2016-05-01',
    name: 'Tom',
    address: '12312'
  }
]

const tableHeader1 = ref([
  {
    label: '缴库单位',
    type: 'checkbox',
    prop: 'checkboxArrange'
  },
  {
    label: '收料日期',
    prop: 'slipNo'
  },
  {
    label: '指令',
    prop: 'slipNo'
  },
  {
    label: '缴库量',
    prop: 'slipNo'
  },
  {
    label: '总道序',
    prop: 'slipNo'
  },
  {
    label: '已报道序',
    prop: 'slipNo'
  },
  {
    label: '已报产量',
    prop: 'slipNo'
  }
])
</script>

<style lang="less" scoped>
h1 {
  font-size: 16px;
}
</style>
